package org.eyeTopLight.exception;

import org.eyeTopLight.exception.exceptions.DBException;
import org.eyeTopLight.service.impl.CategoryServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ExceptionHandler {


    static Logger logger = LoggerFactory.getLogger(ExceptionHandler.class);
    public static void processError(String errorCode,String errorMsg) throws DBException {
        logger.error("");
        if(errorCode.startsWith("DB")){
            throw new DBException(errorMsg);
        }
    }
}
